package cn.pupil.springframework.context;

import cn.pupil.springframework.beans.BeansException;
import cn.pupil.springframework.beans.factory.Aware;

/**
 * @Description: 应用上下文标记接口，实现此接口，既能感知到所属的 ApplicationContext
 * @Author: pupil
 * @Date: 2024/11/11 下午 11:33
 */
public interface ApplicationContextAware extends Aware {
    /**
     * 设置应用上下文
     * @param applicationContext 应用上下文
     * @throws BeansException
     */
    void setApplicationContext(ApplicationContext applicationContext) throws BeansException;
}
